package com.fcscs.ecms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fcscs.cservice.domain.Advertisement;
import com.fcscs.cservice.domain.Versions;
import com.fcscs.cservice.domain.model.EntityVersionView;
import com.fcscs.ecms.dao.ECMSAdvertiseDao;
import com.fcscs.ecms.service.ECMSAdvertiseManager;

@Service("ecmsAdvertiseManager")
public class ECMSAdvertiseManagerImpl implements ECMSAdvertiseManager {

	@Autowired
	ECMSAdvertiseDao ecmsAdvDao;
	
	
	@Override
	public Advertisement getAdvertisement(long id) {
		return ecmsAdvDao.getAdvertisement(id);
	}

	@Override
	public List<Advertisement> getAdvertisementList(long orgId, long propId,boolean isCurrent) {
		return ecmsAdvDao.getAdvertisementList(orgId, propId, isCurrent);
	}

	@Override
	public List<Advertisement> getAdvertisementList(long orgId, long propId,long versionId) {
		return ecmsAdvDao.getAdvertisementList(orgId, propId, versionId);
	}

	@Override
	public List<Advertisement> saveAdvertisementList(List<Advertisement> adList) {
		return ecmsAdvDao.saveAdvertisementList(adList);
	}

	@Override
	public Advertisement createAdvertisement(Advertisement ad) {
		return ecmsAdvDao.createAdvertisement(ad);
	}

	@Override
	public Advertisement saveAdvertisement(Advertisement ad) {
		return ecmsAdvDao.saveAdvertisement(ad);
	}

	@Override
	public boolean deleteAdvertisement(Advertisement ad) {
		return ecmsAdvDao.deleteAdvertisement(ad);
	}

	@Override
	public boolean permDeleteAdvertisement(Advertisement ad) {
		return ecmsAdvDao.permDeleteAdvertisement(ad);
	}

	@Override
	public List<com.fcscs.cservice.domain.model.Advertisement> getAdvertisementViewList(long orgId, long propId) {
		return ecmsAdvDao.getAdvertisementViewList(orgId, propId);
	}

	@Override
	public boolean copyVersion(Versions fromVer, Versions toVer) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List<EntityVersionView> getEntityVersionViewList(long orgId,
			long propId) {
		// TODO Auto-generated method stub
		return null;
	}

}
